//
//  AQJSOCTask.m
//  RunLoopDemo
//
//  Created by zhangjikuan on 2020/9/1.
//  Copyright © 2020 hsgd. All rights reserved.
//

#import "AQJSOCTask.h"
#import "AQJSOCViewController.h"

@implementation AQJSOCTask
- (void)executeBy:(id)target {
    UIViewController *controller = (UIViewController*)target;
    
    AQJSOCViewController *viewController = [[AQJSOCViewController alloc] init];
    if (controller.navigationController) {
        viewController.hidesBottomBarWhenPushed = YES;

        [controller.navigationController pushViewController:viewController animated:YES];        
    } else {
        [controller presentViewController:viewController animated:YES completion:nil];
    }
    
}
@end
